home *** CD-ROM | disk | FTP | other *** search
- class FastMissile extends Missile
- {
- var tm;
- var mc;
- var dm;
- static var MISSILE_TIMER = 180;
- static var MAX_SPEED = 11;
- static var DAMAGE = 2;
- function FastMissile(x, y, newAngle)
- {
- super(x,y,newAngle);
- }
- function getMaxSpeed()
- {
- return FastMissile.MAX_SPEED;
- }
- function getMissileTimer()
- {
- return FastMissile.MISSILE_TIMER;
- }
- function createTrailManager()
- {
- this.tm = new EfficientTrailManager(this.mc,this.mc.exhaust1,3,_root.effects < 3 ? null : 65280,this.getTrailLength(),false,5);
- }
- function createSound()
- {
- }
- function createDebrisManager()
- {
- if(_root.effects >= 2)
- {
- this.dm = new DebrisManager(65280,1);
- }
- }
- function getDamage()
- {
- return FastMissile.DAMAGE;
- }
- }
-